home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{AD5B38A5-573A-42F2-A3ED-D791BDBCE98F}#1.0#0"; "ciaXPSideBarMenu.ocx"
- Object = "{67DAD3BE-84EC-498E-BBE8-CE32814928FC}#1.1#0"; "ciaXPImage.ocx"
- Begin VB.Form frmMain
- BackColor = &H00FFFFFF&
- Caption = "XPSuite - Windows XP Control Panel Sample"
- ClientHeight = 7170
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 10005
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 7170
- ScaleWidth = 10005
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 0
- Left = 4320
- TabIndex = 2
- ToolTipText = "Accessibilty Options"
- Top = 465
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":0000
- ImageHeight = 570
- ImageWidth = 570
- MouseIcon = "frmMain.frx":118A
- MousePointer = 99
- End
- Begin MSComctlLib.ImageList ImageList1
- Left = 4650
- Top = 6105
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 32
- ImageHeight = 32
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 3
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":14A4
- Key = ""
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":31AE
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":4EB8
- Key = ""
- EndProperty
- EndProperty
- End
- Begin XPSideBarMenu.XPSideMenu XPSideMenu1
- Align = 3 'Align Left
- Height = 6795
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 3870
- _ExtentX = 6826
- _ExtentY = 11986
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty ToolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin MSComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 375
- Left = 0
- TabIndex = 0
- Top = 6795
- Width = 10005
- _ExtentX = 17648
- _ExtentY = 661
- _Version = 393216
- BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
- NumPanels = 1
- BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Object.Width = 5292
- MinWidth = 5292
- EndProperty
- EndProperty
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 1
- Left = 5460
- TabIndex = 3
- ToolTipText = "Add or Remove Hardware with you computer system"
- Top = 465
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":729A
- ImageHeight = 540
- ImageWidth = 570
- MouseIcon = "frmMain.frx":833C
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 2
- Left = 6480
- TabIndex = 4
- ToolTipText = "Add or Remove Software packages to or from your computer"
- Top = 465
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":8656
- ImageHeight = 570
- ImageWidth = 585
- MouseIcon = "frmMain.frx":9878
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 3
- Left = 7395
- TabIndex = 5
- Top = 465
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":9B92
- ImageHeight = 540
- ImageWidth = 600
- MouseIcon = "frmMain.frx":ACC4
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 4
- Left = 8640
- TabIndex = 6
- Top = 465
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":AFDE
- ImageHeight = 555
- ImageWidth = 570
- MouseIcon = "frmMain.frx":C0F4
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 5
- Left = 4305
- TabIndex = 7
- Top = 1695
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":C40E
- ImageHeight = 555
- ImageWidth = 555
- MouseIcon = "frmMain.frx":D490
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 6
- Left = 5415
- TabIndex = 8
- Top = 1695
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":D7AA
- ImageHeight = 555
- ImageWidth = 570
- MouseIcon = "frmMain.frx":E8C0
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 7
- Left = 6495
- TabIndex = 9
- ToolTipText = "Display the Computer System options panel"
- Top = 1695
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":EBDA
- ImageHeight = 570
- ImageWidth = 570
- MouseIcon = "frmMain.frx":FD64
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 8
- Left = 7455
- TabIndex = 10
- Top = 1695
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":1007E
- ImageHeight = 495
- ImageWidth = 645
- MouseIcon = "frmMain.frx":111D4
- MousePointer = 99
- End
- Begin ciaXPImage.XPImage img
- Height = 570
- Index = 9
- Left = 8715
- TabIndex = 11
- Top = 1695
- Width = 570
- _ExtentX = 1005
- _ExtentY = 1005
- BorderStyle = 0
- Appearance = 0
- Picture = "frmMain.frx":114EE
- ImageHeight = 585
- ImageWidth = 465
- MouseIcon = "frmMain.frx":123E0
- MousePointer = 99
- End
- Begin MSComctlLib.ImageList ImageList2
- Left = 5280
- Top = 6105
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 16711935
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 7
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":126FA
- Key = ""
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":12C94
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":1322E
- Key = ""
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":137C8
- Key = ""
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":13D62
- Key = ""
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":142FC
- Key = ""
- EndProperty
- BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmMain.frx":14896
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Accessibility Options"
- Height = 420
- Index = 9
- Left = 8550
- MouseIcon = "frmMain.frx":14E30
- MousePointer = 99 'Custom
- TabIndex = 21
- Top = 2250
- Width = 915
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "User Accounts"
- Height = 420
- Index = 8
- Left = 7350
- MouseIcon = "frmMain.frx":1513A
- MousePointer = 99 'Custom
- TabIndex = 20
- Top = 2250
- Width = 915
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "System"
- Height = 195
- Index = 7
- Left = 6270
- MouseIcon = "frmMain.frx":15444
- MousePointer = 99 'Custom
- TabIndex = 19
- Top = 2250
- Width = 945
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Speech"
- Height = 195
- Index = 6
- Left = 5175
- MouseIcon = "frmMain.frx":1574E
- MousePointer = 99 'Custom
- TabIndex = 18
- Top = 2250
- Width = 945
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "Display"
- Height = 195
- Index = 5
- Left = 4065
- MouseIcon = "frmMain.frx":15A58
- MousePointer = 99 'Custom
- TabIndex = 17
- Top = 2250
- Width = 945
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Date and Time"
- Height = 420
- Index = 4
- Left = 8430
- MouseIcon = "frmMain.frx":15D62
- MousePointer = 99 'Custom
- TabIndex = 16
- Top = 1020
- Width = 1140
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Administrative Tools"
- Height = 420
- Index = 3
- Left = 7305
- MouseIcon = "frmMain.frx":1606C
- MousePointer = 99 'Custom
- TabIndex = 15
- Top = 1020
- Width = 1065
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Add or Remove Programs"
- Height = 630
- Index = 2
- Left = 6240
- MouseIcon = "frmMain.frx":16376
- MousePointer = 99 'Custom
- TabIndex = 14
- Top = 1020
- Width = 1050
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Add Hardware"
- Height = 420
- Index = 1
- Left = 5235
- MouseIcon = "frmMain.frx":16680
- MousePointer = 99 'Custom
- TabIndex = 13
- Top = 1020
- Width = 915
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- Caption = "Accessibility Options"
- Height = 420
- Index = 0
- Left = 4155
- MouseIcon = "frmMain.frx":1698A
- MousePointer = 99 'Custom
- TabIndex = 12
- Top = 1020
- Width = 915
- WordWrap = -1 'True
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Dim fProps As FrameProps
- Dim bProps As ButtonProps
- 'get the default (main style) frame properties for this side menu bar (theme dependent)
- Set fProps = XPSideMenu1.GetDefaultFrameProperties(vbMain)
- 'now change the frame specific properties
- fProps.prpCaption = "Control Panel"
- Set fProps.prpIcon = ImageList1.ListImages(3).Picture
- 'this will be the first frame so we will set the frame type to main
- fProps.prpType = vbMain
- 'set the initial state as closed
- fProps.prpState = vbOpen
- 'now add the first frame
- XPSideMenu1.AddFrame fProps
- 'get the default hyperlink button properties for this theme
- Set bProps = XPSideMenu1.GetDefaultButtonProperties(xpHyperlink)
- 'set the button's caption and icon properties
- bProps.prpUseDefaultXPColors = True
- bProps.prpHighLightForeColor = vbRed
- 'set the button's caption and icon properties
- bProps.prpCaption = "Switch To Category View"
- Set bProps.prpIcon = ImageList2.ListImages(5).Picture
- 'lets add this button to this frame
- XPSideMenu1.AddButton 0, bProps
- 'for the next frame, we will change the caption
- fProps.prpCaption = "See Also"
- 'and change the icon
- Set fProps.prpIcon = ImageList1.ListImages(3).Picture
- 'this will be a sub frame so we will set the frame type to sub
- fProps.prpType = vbSub
- 'now add this frame
- XPSideMenu1.AddFrame fProps
- 'get the default hyperlink button properties for this theme
- Set bProps = XPSideMenu1.GetDefaultButtonProperties(xpHyperlink)
- bProps.prpCaption = "Windows Update"
- Set bProps.prpIcon = ImageList2.ListImages(4).Picture
- 'lets add this button to this frame
- XPSideMenu1.AddButton 1, bProps
- bProps.prpCaption = "Help and Support"
- Set bProps.prpIcon = ImageList2.ListImages(7).Picture
- XPSideMenu1.AddButton 1, bProps
- End Sub
- Private Sub img_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Select Case Index
- Case 0
- Case 1
- Case 2
- Case 3
- Case 4
- Case 5
- Case 6
- Case 7 'System
- frmSystem.Show 1
- Case 8
- Case 9
- End Select
- End Sub
- Private Sub XPSideMenu1_MouseEnter(Frame As Integer, Item As Integer, Caption As String, ToolTip As String)
- StatusBar1.Panels(1).Text = Caption
- End Sub
- Private Sub XPSideMenu1_MouseExit(Frame As Integer, Item As Integer, Caption As String, ToolTip As String)
- StatusBar1.Panels(1).Text = ""
- End Sub
-